<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>appium自动化测试报告</title>
    <meta name="generator" content="HTMLTestReportCN 0.8.3"/>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <link href="http://libs.baidu.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
    <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
    <script src="http://libs.baidu.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
    
<style type="text/css" media="screen">
body        { font-family: Microsoft YaHei,Tahoma,arial,helvetica,sans-serif;padding: 20px; font-size: 100%; }
table       { font-size: 100%; }
/* -- heading ---------------------------------------------------------------------- */
.heading {
    margin-top: 0ex;
    margin-bottom: 1ex;
}
.heading .description {
    margin-top: 4ex;
    margin-bottom: 6ex;
}
/* -- report ------------------------------------------------------------------------ */
#total_row  { font-weight: bold; }
.passCase   { color: #5cb85c; }
.failCase   { color: #d9534f; font-weight: bold; }
.errorCase  { color: #f0ad4e; font-weight: bold; }
.hiddenRow  { display: none; }
.testcase   { margin-left: 2em; }
</style>

</head>
<body >
<div class='heading'>
<h1 style="font-family: Microsoft YaHei">appium自动化测试报告</h1>
<p class='attribute'><strong>测试人员 : </strong> 橙好</p>
<p class='attribute'><strong>开始时间 : </strong> 2024-08-05 17:13:57</p>
<p class='attribute'><strong>合计耗时 : </strong> 0:00:48.772697</p>
<p class='attribute'><strong>测试结果 : </strong> 共 3，通过 2，错误 1，通过率= 66.67%</p>

<p class='description'></p>
</div>


<p id='show_detail_line'>
<a class="btn btn-primary" href='javascript:showCase(4)'>概要{ 66.67% }</a>
<a class="btn btn-success" href='javascript:showCase(0)'>通过{ 2 }</a>
<a class="btn btn-danger" href='javascript:showCase(1)'>失败{ 0 }</a>
<a class="btn btn-warning" href='javascript:showCase(2)'>错误{ 1 }</a>
<a class="btn btn-info" href='javascript:showCase(3)'>所有{ 3 }</a>
</p>
<table id='result_table' class="table table-condensed table-bordered table-hover">
<colgroup>
<col align='left' />
<col align='right' />
<col align='right' />
<col align='right' />
<col align='right' />
<col align='right' />
</colgroup>
<tr id='header_row' class="text-center active" style="font-weight: bold;font-size: 14px;">
    <td>用例集/测试用例</td>
    <td>总计</td>
    <td>通过</td>
    <td>失败</td>
    <td>错误</td>
    <td>详细</td>
</tr>

<tr class='warning'>
    <td>searchTest.SearchTest</td>
    <td class="text-center">3</td>
    <td class="text-center">2</td>
    <td class="text-center">0</td>
    <td class="text-center">1</td>
    <td class="text-center"><a href="javascript:showClassDetail('c1',3)" class="detail" id='c1'>详细</a></td>
</tr>

<tr id='et1_1' class='none'>
    <td class='errorCase'><div class='testcase'>test_max_len</div></td>
    <td colspan='5' align='center'>
    <!--默认收起output信息 -Findyou
    <button id='btn_et1_1' type="button"  class="btn-xs collapsed" data-toggle="collapse" data-target='#div_et1_1'>错误</button>
    <div id='div_et1_1' class="collapse">  -->
    <!-- 默认展开output信息 -Findyou -->
    <button id='btn_et1_1' type="button"  class="btn-xs" data-toggle="collapse" data-target='#div_et1_1'>错误</button>
    <div id='div_et1_1' class="collapse in">
    <pre>
    
et1_1: Traceback (most recent call last):
  File "D:\code\Appium31\common\myTest.py", line 14, in setUp
    self.driver.launch_app()
  File "D:\code\Appium31\venv\lib\site-packages\appium\webdriver\extensions\applications.py", line 115, in launch_app
    self.execute(Command.LAUNCH_APP)
  File "D:\code\Appium31\venv\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
    self.error_handler.check_response(response)
  File "D:\code\Appium31\venv\lib\site-packages\appium\webdriver\errorhandler.py", line 31, in check_response
    raise wde
  File "D:\code\Appium31\venv\lib\site-packages\appium\webdriver\errorhandler.py", line 26, in check_response
    super().check_response(response)
  File "D:\code\Appium31\venv\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: Unable to launch the app: Error: Trying to start logcat capture but it's already started!



    </pre>
    </div>
    </td>
</tr>

<tr id='pt1_2' class='hiddenRow'>
    <td class='passCase'><div class='testcase'>test_min_len</div></td>
    <td colspan='5' align='center'>
    <!--默认收起output信息 -Findyou
    <button id='btn_pt1_2' type="button"  class="btn-xs collapsed" data-toggle="collapse" data-target='#div_pt1_2'>通过</button>
    <div id='div_pt1_2' class="collapse">  -->
    <!-- 默认展开output信息 -Findyou -->
    <button id='btn_pt1_2' type="button"  class="btn-xs" data-toggle="collapse" data-target='#div_pt1_2'>通过</button>
    <div id='div_pt1_2' class="collapse in">
    <pre>
    
pt1_2: 执行每条用例前准备工作
--- Logging error ---
Traceback (most recent call last):
  File "D:\software\python\lib\logging\handlers.py", line 74, in emit
    self.doRollover()
  File "D:\software\python\lib\logging\handlers.py", line 403, in doRollover
    self.rotate(self.baseFilename, dfn)
  File "D:\software\python\lib\logging\handlers.py", line 115, in rotate
    os.rename(source, dest)
PermissionError: [WinError 32] 另一个程序正在使用此文件，进程无法访问。: 'D:\\code\\Appium31\\testLogs\\log.txt' -&gt; 'D:\\code\\Appium31\\testLogs\\log.txt.2024-04-13'
Call stack:
  File "&lt;string&gt;", line 1, in &lt;module&gt;
  File "D:\software\python\lib\multiprocessing\spawn.py", line 116, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "D:\software\python\lib\multiprocessing\spawn.py", line 129, in _main
    return self._bootstrap(parent_sentinel)
  File "D:\software\python\lib\multiprocessing\process.py", line 315, in _bootstrap
    self.run()
  File "D:\software\python\lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "D:\software\python\lib\multiprocessing\pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
  File "D:\code\Appium31\main.py", line 55, in run
    report = gen_report(suite,x)
  File "D:\code\Appium31\main.py", line 25, in gen_report
    runner.run(suite)
  File "D:\code\Appium31\HTMLTestRunner.py", line 575, in run
    test(result)
  File "D:\software\python\lib\unittest\suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "D:\software\python\lib\unittest\suite.py", line 122, in run
    test(result)
  File "D:\software\python\lib\unittest\suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "D:\software\python\lib\unittest\suite.py", line 122, in run
    test(result)
  File "D:\software\python\lib\unittest\suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "D:\software\python\lib\unittest\suite.py", line 122, in run
    test(result)
  File "D:\software\python\lib\unittest\case.py", line 653, in __call__
    return self.run(*args, **kwds)
  File "D:\software\python\lib\unittest\case.py", line 593, in run
    self._callTestMethod(testMethod)
  File "D:\software\python\lib\unittest\case.py", line 550, in _callTestMethod
    method()
  File "D:\code\Appium31\testCase\searchTest.py", line 49, in test_min_len
    data = rd.read_excel(cname, mname)
  File "D:\code\Appium31\common\readData.py", line 9, in read_excel
    logger.info(f"要测试的类名{cname},要测试的方法名{mname}")
Message: '要测试的类名SearchTest,要测试的方法名test_min_len'
Arguments: ()
--- Logging error ---
Traceback (most recent call last):
  File "D:\software\python\lib\logging\handlers.py", line 74, in emit
    self.doRollover()
  File "D:\software\python\lib\logging\handlers.py", line 403, in doRollover
    self.rotate(self.baseFilename, dfn)
  File "D:\software\python\lib\logging\handlers.py", line 115, in rotate
    os.rename(source, dest)
PermissionError: [WinError 32] 另一个程序正在使用此文件，进程无法访问。: 'D:\\code\\Appium31\\testLogs\\log.txt' -&gt; 'D:\\code\\Appium31\\testLogs\\log.txt.2024-04-13'
Call stack:
  File "&lt;string&gt;", line 1, in &lt;module&gt;
  File "D:\software\python\lib\multiprocessing\spawn.py", line 116, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "D:\software\python\lib\multiprocessing\spawn.py", line 129, in _main
    return self._bootstrap(parent_sentinel)
  File "D:\software\python\lib\multiprocessing\process.py", line 315, in _bootstrap
    self.run()
  File "D:\software\python\lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "D:\software\python\lib\multiprocessing\pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
  File "D:\code\Appium31\main.py", line 55, in run
    report = gen_report(suite,x)
  File "D:\code\Appium31\main.py", line 25, in gen_report
    runner.run(suite)
  File "D:\code\Appium31\HTMLTestRunner.py", line 575, in run
    test(result)
  File "D:\software\python\lib\unittest\suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "D:\software\python\lib\unittest\suite.py", line 122, in run
    test(result)
  File "D:\software\python\lib\unittest\suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "D:\software\python\lib\unittest\suite.py", line 122, in run
    test(result)
  File "D:\software\python\lib\unittest\suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "D:\software\python\lib\unittest\suite.py", line 122, in run
    test(result)
  File "D:\software\python\lib\unittest\case.py", line 653, in __call__
    return self.run(*args, **kwds)
  File "D:\software\python\lib\unittest\case.py", line 593, in run
    self._callTestMethod(testMethod)
  File "D:\software\python\lib\unittest\case.py", line 550, in _callTestMethod
    method()
  File "D:\code\Appium31\testCase\searchTest.py", line 49, in test_min_len
    data = rd.read_excel(cname, mname)
  File "D:\code\Appium31\common\readData.py", line 19, in read_excel
    logger.info(f'读取到的测试数据为{dict1["testdata"]}')
Message: '读取到的测试数据为橙好'
Arguments: ()
--- Logging error ---
Traceback (most recent call last):
  File "D:\software\python\lib\logging\handlers.py", line 74, in emit
    self.doRollover()
  File "D:\software\python\lib\logging\handlers.py", line 403, in doRollover
    self.rotate(self.baseFilename, dfn)
  File "D:\software\python\lib\logging\handlers.py", line 115, in rotate
    os.rename(source, dest)
PermissionError: [WinError 32] 另一个程序正在使用此文件，进程无法访问。: 'D:\\code\\Appium31\\testLogs\\log.txt' -&gt; 'D:\\code\\Appium31\\testLogs\\log.txt.2024-04-13'
Call stack:
  File "&lt;string&gt;", line 1, in &lt;module&gt;
  File "D:\software\python\lib\multiprocessing\spawn.py", line 116, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "D:\software\python\lib\multiprocessing\spawn.py", line 129, in _main
    return self._bootstrap(parent_sentinel)
  File "D:\software\python\lib\multiprocessing\process.py", line 315, in _bootstrap
    self.run()
  File "D:\software\python\lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "D:\software\python\lib\multiprocessing\pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
  File "D:\code\Appium31\main.py", line 55, in run
    report = gen_report(suite,x)
  File "D:\code\Appium31\main.py", line 25, in gen_report
    runner.run(suite)
  File "D:\code\Appium31\HTMLTestRunner.py", line 575, in run
    test(result)
  File "D:\software\python\lib\unittest\suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "D:\software\python\lib\unittest\suite.py", line 122, in run
    test(result)
  File "D:\software\python\lib\unittest\suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "D:\software\python\lib\unittest\suite.py", line 122, in run
    test(result)
  File "D:\software\python\lib\unittest\suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "D:\software\python\lib\unittest\suite.py", line 122, in run
    test(result)
  File "D:\software\python\lib\unittest\case.py", line 653, in __call__
    return self.run(*args, **kwds)
  File "D:\software\python\lib\unittest\case.py", line 593, in run
    self._callTestMethod(testMethod)
  File "D:\software\python\lib\unittest\case.py", line 550, in _callTestMethod
    method()
  File "D:\code\Appium31\testCase\searchTest.py", line 52, in test_min_len
    self.sp.clickSearchbox()
  File "D:\code\Appium31\po\home\searchPage.py", line 22, in clickSearchbox
    self.by_find_element(*self.search_box).click()
  File "D:\code\Appium31\po\basePage.py", line 18, in by_find_element
    logger.info(f"{items}元素定位成功")
Message: "('id', 'com.ss.android.article.news:id/bpb')元素定位成功"
Arguments: ()
--- Logging error ---
Traceback (most recent call last):
  File "D:\software\python\lib\logging\handlers.py", line 74, in emit
    self.doRollover()
  File "D:\software\python\lib\logging\handlers.py", line 403, in doRollover
    self.rotate(self.baseFilename, dfn)
  File "D:\software\python\lib\logging\handlers.py", line 115, in rotate
    os.rename(source, dest)
PermissionError: [WinError 32] 另一个程序正在使用此文件，进程无法访问。: 'D:\\code\\Appium31\\testLogs\\log.txt' -&gt; 'D:\\code\\Appium31\\testLogs\\log.txt.2024-04-13'
Call stack:
  File "&lt;string&gt;", line 1, in &lt;module&gt;
  File "D:\software\python\lib\multiprocessing\spawn.py", line 116, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "D:\software\python\lib\multiprocessing\spawn.py", line 129, in _main
    return self._bootstrap(parent_sentinel)
  File "D:\software\python\lib\multiprocessing\process.py", line 315, in _bootstrap
    self.run()
  File "D:\software\python\lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "D:\software\python\lib\multiprocessing\pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
  File "D:\code\Appium31\main.py", line 55, in run
    report = gen_report(suite,x)
  File "D:\code\Appium31\main.py", line 25, in gen_report
    runner.run(suite)
  File "D:\code\Appium31\HTMLTestRunner.py", line 575, in run
    test(result)
  File "D:\software\python\lib\unittest\suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "D:\software\python\lib\unittest\suite.py", line 122, in run
    test(result)
  File "D:\software\python\lib\unittest\suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "D:\software\python\lib\unittest\suite.py", line 122, in run
    test(result)
  File "D:\software\python\lib\unittest\suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "D:\software\python\lib\unittest\suite.py", line 122, in run
    test(result)
  File "D:\software\python\lib\unittest\case.py", line 653, in __call__
    return self.run(*args, **kwds)
  File "D:\software\python\lib\unittest\case.py", line 593, in run
    self._callTestMethod(testMethod)
  File "D:\software\python\lib\unittest\case.py", line 550, in _callTestMethod
    method()
  File "D:\code\Appium31\testCase\searchTest.py", line 54, in test_min_len
    self.sp.inputSearchbox(data)
  File "D:\code\Appium31\po\home\searchPage.py", line 26, in inputSearchbox
    self.by_find_element(*self.input_box).send_keys(data)
  File "D:\code\Appium31\po\basePage.py", line 18, in by_find_element
    logger.info(f"{items}元素定位成功")
Message: "('id', 'com.ss.android.article.news:id/w3')元素定位成功"
Arguments: ()
--- Logging error ---
Traceback (most recent call last):
  File "D:\software\python\lib\logging\handlers.py", line 74, in emit
    self.doRollover()
  File "D:\software\python\lib\logging\handlers.py", line 403, in doRollover
    self.rotate(self.baseFilename, dfn)
  File "D:\software\python\lib\logging\handlers.py", line 115, in rotate
    os.rename(source, dest)
PermissionError: [WinError 32] 另一个程序正在使用此文件，进程无法访问。: 'D:\\code\\Appium31\\testLogs\\log.txt' -&gt; 'D:\\code\\Appium31\\testLogs\\log.txt.2024-04-13'
Call stack:
  File "&lt;string&gt;", line 1, in &lt;module&gt;
  File "D:\software\python\lib\multiprocessing\spawn.py", line 116, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "D:\software\python\lib\multiprocessing\spawn.py", line 129, in _main
    return self._bootstrap(parent_sentinel)
  File "D:\software\python\lib\multiprocessing\process.py", line 315, in _bootstrap
    self.run()
  File "D:\software\python\lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "D:\software\python\lib\multiprocessing\pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
  File "D:\code\Appium31\main.py", line 55, in run
    report = gen_report(suite,x)
  File "D:\code\Appium31\main.py", line 25, in gen_report
    runner.run(suite)
  File "D:\code\Appium31\HTMLTestRunner.py", line 575, in run
    test(result)
  File "D:\software\python\lib\unittest\suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "D:\software\python\lib\unittest\suite.py", line 122, in run
    test(result)
  File "D:\software\python\lib\unittest\suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "D:\software\python\lib\unittest\suite.py", line 122, in run
    test(result)
  File "D:\software\python\lib\unittest\suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "D:\software\python\lib\unittest\suite.py", line 122, in run
    test(result)
  File "D:\software\python\lib\unittest\case.py", line 653, in __call__
    return self.run(*args, **kwds)
  File "D:\software\python\lib\unittest\case.py", line 593, in run
    self._callTestMethod(testMethod)
  File "D:\software\python\lib\unittest\case.py", line 550, in _callTestMethod
    method()
  File "D:\code\Appium31\testCase\searchTest.py", line 56, in test_min_len
    self.sp.clickSearchbut()
  File "D:\code\Appium31\po\home\searchPage.py", line 30, in clickSearchbut
    self.by_find_element(*self.search_but).click()
  File "D:\code\Appium31\po\basePage.py", line 18, in by_find_element
    logger.info(f"{items}元素定位成功")
Message: "('id', 'com.ss.android.article.news:id/w0')元素定位成功"
Arguments: ()
执行每条用例后清理工作


    </pre>
    </div>
    </td>
</tr>

<tr id='pt1_3' class='hiddenRow'>
    <td class='passCase'><div class='testcase'>test_normal_len</div></td>
    <td colspan='5' align='center'>
    <!--默认收起output信息 -Findyou
    <button id='btn_pt1_3' type="button"  class="btn-xs collapsed" data-toggle="collapse" data-target='#div_pt1_3'>通过</button>
    <div id='div_pt1_3' class="collapse">  -->
    <!-- 默认展开output信息 -Findyou -->
    <button id='btn_pt1_3' type="button"  class="btn-xs" data-toggle="collapse" data-target='#div_pt1_3'>通过</button>
    <div id='div_pt1_3' class="collapse in">
    <pre>
    
pt1_3: 执行每条用例前准备工作
--- Logging error ---
Traceback (most recent call last):
  File "D:\software\python\lib\logging\handlers.py", line 74, in emit
    self.doRollover()
  File "D:\software\python\lib\logging\handlers.py", line 403, in doRollover
    self.rotate(self.baseFilename, dfn)
  File "D:\software\python\lib\logging\handlers.py", line 115, in rotate
    os.rename(source, dest)
PermissionError: [WinError 32] 另一个程序正在使用此文件，进程无法访问。: 'D:\\code\\Appium31\\testLogs\\log.txt' -&gt; 'D:\\code\\Appium31\\testLogs\\log.txt.2024-04-13'
Call stack:
  File "&lt;string&gt;", line 1, in &lt;module&gt;
  File "D:\software\python\lib\multiprocessing\spawn.py", line 116, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "D:\software\python\lib\multiprocessing\spawn.py", line 129, in _main
    return self._bootstrap(parent_sentinel)
  File "D:\software\python\lib\multiprocessing\process.py", line 315, in _bootstrap
    self.run()
  File "D:\software\python\lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "D:\software\python\lib\multiprocessing\pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
  File "D:\code\Appium31\main.py", line 55, in run
    report = gen_report(suite,x)
  File "D:\code\Appium31\main.py", line 25, in gen_report
    runner.run(suite)
  File "D:\code\Appium31\HTMLTestRunner.py", line 575, in run
    test(result)
  File "D:\software\python\lib\unittest\suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "D:\software\python\lib\unittest\suite.py", line 122, in run
    test(result)
  File "D:\software\python\lib\unittest\suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "D:\software\python\lib\unittest\suite.py", line 122, in run
    test(result)
  File "D:\software\python\lib\unittest\suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "D:\software\python\lib\unittest\suite.py", line 122, in run
    test(result)
  File "D:\software\python\lib\unittest\case.py", line 653, in __call__
    return self.run(*args, **kwds)
  File "D:\software\python\lib\unittest\case.py", line 593, in run
    self._callTestMethod(testMethod)
  File "D:\software\python\lib\unittest\case.py", line 550, in _callTestMethod
    method()
  File "D:\code\Appium31\testCase\searchTest.py", line 18, in test_normal_len
    data=rd.read_excel(cname,mname)
  File "D:\code\Appium31\common\readData.py", line 9, in read_excel
    logger.info(f"要测试的类名{cname},要测试的方法名{mname}")
Message: '要测试的类名SearchTest,要测试的方法名test_normal_len'
Arguments: ()
--- Logging error ---
Traceback (most recent call last):
  File "D:\software\python\lib\logging\handlers.py", line 74, in emit
    self.doRollover()
  File "D:\software\python\lib\logging\handlers.py", line 403, in doRollover
    self.rotate(self.baseFilename, dfn)
  File "D:\software\python\lib\logging\handlers.py", line 115, in rotate
    os.rename(source, dest)
PermissionError: [WinError 32] 另一个程序正在使用此文件，进程无法访问。: 'D:\\code\\Appium31\\testLogs\\log.txt' -&gt; 'D:\\code\\Appium31\\testLogs\\log.txt.2024-04-13'
Call stack:
  File "&lt;string&gt;", line 1, in &lt;module&gt;
  File "D:\software\python\lib\multiprocessing\spawn.py", line 116, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "D:\software\python\lib\multiprocessing\spawn.py", line 129, in _main
    return self._bootstrap(parent_sentinel)
  File "D:\software\python\lib\multiprocessing\process.py", line 315, in _bootstrap
    self.run()
  File "D:\software\python\lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "D:\software\python\lib\multiprocessing\pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
  File "D:\code\Appium31\main.py", line 55, in run
    report = gen_report(suite,x)
  File "D:\code\Appium31\main.py", line 25, in gen_report
    runner.run(suite)
  File "D:\code\Appium31\HTMLTestRunner.py", line 575, in run
    test(result)
  File "D:\software\python\lib\unittest\suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "D:\software\python\lib\unittest\suite.py", line 122, in run
    test(result)
  File "D:\software\python\lib\unittest\suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "D:\software\python\lib\unittest\suite.py", line 122, in run
    test(result)
  File "D:\software\python\lib\unittest\suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "D:\software\python\lib\unittest\suite.py", line 122, in run
    test(result)
  File "D:\software\python\lib\unittest\case.py", line 653, in __call__
    return self.run(*args, **kwds)
  File "D:\software\python\lib\unittest\case.py", line 593, in run
    self._callTestMethod(testMethod)
  File "D:\software\python\lib\unittest\case.py", line 550, in _callTestMethod
    method()
  File "D:\code\Appium31\testCase\searchTest.py", line 18, in test_normal_len
    data=rd.read_excel(cname,mname)
  File "D:\code\Appium31\common\readData.py", line 19, in read_excel
    logger.info(f'读取到的测试数据为{dict1["testdata"]}')
Message: '读取到的测试数据为橙好测试'
Arguments: ()
--- Logging error ---
Traceback (most recent call last):
  File "D:\software\python\lib\logging\handlers.py", line 74, in emit
    self.doRollover()
  File "D:\software\python\lib\logging\handlers.py", line 403, in doRollover
    self.rotate(self.baseFilename, dfn)
  File "D:\software\python\lib\logging\handlers.py", line 115, in rotate
    os.rename(source, dest)
PermissionError: [WinError 32] 另一个程序正在使用此文件，进程无法访问。: 'D:\\code\\Appium31\\testLogs\\log.txt' -&gt; 'D:\\code\\Appium31\\testLogs\\log.txt.2024-04-13'
Call stack:
  File "&lt;string&gt;", line 1, in &lt;module&gt;
  File "D:\software\python\lib\multiprocessing\spawn.py", line 116, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "D:\software\python\lib\multiprocessing\spawn.py", line 129, in _main
    return self._bootstrap(parent_sentinel)
  File "D:\software\python\lib\multiprocessing\process.py", line 315, in _bootstrap
    self.run()
  File "D:\software\python\lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "D:\software\python\lib\multiprocessing\pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
  File "D:\code\Appium31\main.py", line 55, in run
    report = gen_report(suite,x)
  File "D:\code\Appium31\main.py", line 25, in gen_report
    runner.run(suite)
  File "D:\code\Appium31\HTMLTestRunner.py", line 575, in run
    test(result)
  File "D:\software\python\lib\unittest\suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "D:\software\python\lib\unittest\suite.py", line 122, in run
    test(result)
  File "D:\software\python\lib\unittest\suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "D:\software\python\lib\unittest\suite.py", line 122, in run
    test(result)
  File "D:\software\python\lib\unittest\suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "D:\software\python\lib\unittest\suite.py", line 122, in run
    test(result)
  File "D:\software\python\lib\unittest\case.py", line 653, in __call__
    return self.run(*args, **kwds)
  File "D:\software\python\lib\unittest\case.py", line 593, in run
    self._callTestMethod(testMethod)
  File "D:\software\python\lib\unittest\case.py", line 550, in _callTestMethod
    method()
  File "D:\code\Appium31\testCase\searchTest.py", line 21, in test_normal_len
    self.sp.clickSearchbox()
  File "D:\code\Appium31\po\home\searchPage.py", line 22, in clickSearchbox
    self.by_find_element(*self.search_box).click()
  File "D:\code\Appium31\po\basePage.py", line 18, in by_find_element
    logger.info(f"{items}元素定位成功")
Message: "('id', 'com.ss.android.article.news:id/bpb')元素定位成功"
Arguments: ()
--- Logging error ---
Traceback (most recent call last):
  File "D:\software\python\lib\logging\handlers.py", line 74, in emit
    self.doRollover()
  File "D:\software\python\lib\logging\handlers.py", line 403, in doRollover
    self.rotate(self.baseFilename, dfn)
  File "D:\software\python\lib\logging\handlers.py", line 115, in rotate
    os.rename(source, dest)
PermissionError: [WinError 32] 另一个程序正在使用此文件，进程无法访问。: 'D:\\code\\Appium31\\testLogs\\log.txt' -&gt; 'D:\\code\\Appium31\\testLogs\\log.txt.2024-04-13'
Call stack:
  File "&lt;string&gt;", line 1, in &lt;module&gt;
  File "D:\software\python\lib\multiprocessing\spawn.py", line 116, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "D:\software\python\lib\multiprocessing\spawn.py", line 129, in _main
    return self._bootstrap(parent_sentinel)
  File "D:\software\python\lib\multiprocessing\process.py", line 315, in _bootstrap
    self.run()
  File "D:\software\python\lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "D:\software\python\lib\multiprocessing\pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
  File "D:\code\Appium31\main.py", line 55, in run
    report = gen_report(suite,x)
  File "D:\code\Appium31\main.py", line 25, in gen_report
    runner.run(suite)
  File "D:\code\Appium31\HTMLTestRunner.py", line 575, in run
    test(result)
  File "D:\software\python\lib\unittest\suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "D:\software\python\lib\unittest\suite.py", line 122, in run
    test(result)
  File "D:\software\python\lib\unittest\suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "D:\software\python\lib\unittest\suite.py", line 122, in run
    test(result)
  File "D:\software\python\lib\unittest\suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "D:\software\python\lib\unittest\suite.py", line 122, in run
    test(result)
  File "D:\software\python\lib\unittest\case.py", line 653, in __call__
    return self.run(*args, **kwds)
  File "D:\software\python\lib\unittest\case.py", line 593, in run
    self._callTestMethod(testMethod)
  File "D:\software\python\lib\unittest\case.py", line 550, in _callTestMethod
    method()
  File "D:\code\Appium31\testCase\searchTest.py", line 23, in test_normal_len
    self.sp.inputSearchbox(data)
  File "D:\code\Appium31\po\home\searchPage.py", line 26, in inputSearchbox
    self.by_find_element(*self.input_box).send_keys(data)
  File "D:\code\Appium31\po\basePage.py", line 18, in by_find_element
    logger.info(f"{items}元素定位成功")
Message: "('id', 'com.ss.android.article.news:id/w3')元素定位成功"
Arguments: ()
--- Logging error ---
Traceback (most recent call last):
  File "D:\software\python\lib\logging\handlers.py", line 74, in emit
    self.doRollover()
  File "D:\software\python\lib\logging\handlers.py", line 403, in doRollover
    self.rotate(self.baseFilename, dfn)
  File "D:\software\python\lib\logging\handlers.py", line 115, in rotate
    os.rename(source, dest)
PermissionError: [WinError 32] 另一个程序正在使用此文件，进程无法访问。: 'D:\\code\\Appium31\\testLogs\\log.txt' -&gt; 'D:\\code\\Appium31\\testLogs\\log.txt.2024-04-13'
Call stack:
  File "&lt;string&gt;", line 1, in &lt;module&gt;
  File "D:\software\python\lib\multiprocessing\spawn.py", line 116, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "D:\software\python\lib\multiprocessing\spawn.py", line 129, in _main
    return self._bootstrap(parent_sentinel)
  File "D:\software\python\lib\multiprocessing\process.py", line 315, in _bootstrap
    self.run()
  File "D:\software\python\lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "D:\software\python\lib\multiprocessing\pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
  File "D:\code\Appium31\main.py", line 55, in run
    report = gen_report(suite,x)
  File "D:\code\Appium31\main.py", line 25, in gen_report
    runner.run(suite)
  File "D:\code\Appium31\HTMLTestRunner.py", line 575, in run
    test(result)
  File "D:\software\python\lib\unittest\suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "D:\software\python\lib\unittest\suite.py", line 122, in run
    test(result)
  File "D:\software\python\lib\unittest\suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "D:\software\python\lib\unittest\suite.py", line 122, in run
    test(result)
  File "D:\software\python\lib\unittest\suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "D:\software\python\lib\unittest\suite.py", line 122, in run
    test(result)
  File "D:\software\python\lib\unittest\case.py", line 653, in __call__
    return self.run(*args, **kwds)
  File "D:\software\python\lib\unittest\case.py", line 593, in run
    self._callTestMethod(testMethod)
  File "D:\software\python\lib\unittest\case.py", line 550, in _callTestMethod
    method()
  File "D:\code\Appium31\testCase\searchTest.py", line 25, in test_normal_len
    self.sp.clickSearchbut()
  File "D:\code\Appium31\po\home\searchPage.py", line 30, in clickSearchbut
    self.by_find_element(*self.search_but).click()
  File "D:\code\Appium31\po\basePage.py", line 18, in by_find_element
    logger.info(f"{items}元素定位成功")
Message: "('id', 'com.ss.android.article.news:id/w0')元素定位成功"
Arguments: ()
执行每条用例后清理工作


    </pre>
    </div>
    </td>
</tr>

<tr id='total_row' class="text-center info">
    <td>总计</td>
    <td>3</td>
    <td>2</td>
    <td>0</td>
    <td>1</td>
    <td>通过率：66.67%</td>
</tr>
</table>

<div id='ending'>&nbsp;</div>
    <div style=" position:fixed;right:50px; bottom:30px; width:20px; height:20px;cursor:pointer">
    <a href="#"><span class="glyphicon glyphicon-eject" style = "font-size:30px;" aria-hidden="true">
    </span></a></div>
    
<script language="javascript" type="text/javascript">
output_list = Array();
// 修改按钮颜色显示错误问题 --Findyou v0.8.2.3
$("button[id^='btn_pt']").addClass("btn btn-success");
$("button[id^='btn_ft']").addClass("btn btn-danger");
$("button[id^='btn_et']").addClass("btn btn-warning");
/*level
增加分类并调整，增加error按钮事件 --Findyou v0.8.2.3
0:Pass    //pt none, ft hiddenRow, et hiddenRow
1:Failed  //pt hiddenRow, ft none, et hiddenRow
2:Error    //pt hiddenRow, ft hiddenRow, et none
3:All     //pt none, ft none, et none
4:Summary //all hiddenRow
*/
//add Error button event --Findyou v0.8.2.3
function showCase(level) {
    trs = document.getElementsByTagName("tr");
    for (var i = 0; i < trs.length; i++) {
        tr = trs[i];
        id = tr.id;
        if (id.substr(0,2) == 'ft') {
            if (level == 0 || level == 2 || level == 4 ) {
                tr.className = 'hiddenRow';
            }
            else {
                tr.className = '';
            }
        }
        if (id.substr(0,2) == 'pt') {
            if (level == 1 || level == 2 || level == 4) {
                tr.className = 'hiddenRow';
            }
            else {
                tr.className = '';
            }
        }
        if (id.substr(0,2) == 'et') {
            if (level == 0 || level == 1 || level == 4) {
                tr.className = 'hiddenRow';
            }
            else {
                tr.className = '';
            }
        }
    }
    //加入【详细】切换文字变化 --Findyou
    detail_class=document.getElementsByClassName('detail');
	//console.log(detail_class.length)
	if (level == 3) {
		for (var i = 0; i < detail_class.length; i++){
			detail_class[i].innerHTML="收起"
		}
	}
	else{
			for (var i = 0; i < detail_class.length; i++){
			detail_class[i].innerHTML="详细"
		}
	}
}
//add Error button event --Findyou v0.8.2.3
function showClassDetail(cid, count) {
    var id_list = Array(count);
    var toHide = 1;
    for (var i = 0; i < count; i++) {
        tid0 = 't' + cid.substr(1) + '_' + (i+1);
        tid = 'f' + tid0;
        tr = document.getElementById(tid);
        if (!tr) {
            tid = 'p' + tid0;
            tr = document.getElementById(tid);
        }
        if (!tr) {
            tid = 'e' + tid0;
            tr = document.getElementById(tid);
        }
        id_list[i] = tid;
        if (tr.className) {
            toHide = 0;
        }
    }
    for (var i = 0; i < count; i++) {
        tid = id_list[i];
        //修改点击无法收起的BUG，加入【详细】切换文字变化 --Findyou
        if (toHide) {
            document.getElementById(tid).className = 'hiddenRow';
            document.getElementById(cid).innerText = "详细"
        }
        else {
            document.getElementById(tid).className = '';
            document.getElementById(cid).innerText = "收起"
        }
    }
}
function html_escape(s) {
    s = s.replace(/&/g,'&amp;');
    s = s.replace(/</g,'&lt;');
    s = s.replace(/>/g,'&gt;');
    return s;
}
</script>
</body>
</html>
